/**
  ******************************************************************************
  * @file   
  * @author  
  * @version 
  * @date    
  * @brief   
  ******************************************************************************
	* @attention
  *
  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */

#include "hwconf.h"

/**
  * @brief  Configures the EXTI.
  * @param  None
  * @retval None
  */
void EXTI_Config(void)
{
	/* Enable clocks for SysCfg */
  RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);

	/* DeInitialize EXTI - just to be sure */
	EXTI_DeInit();
	
	/* Enable Rising Edge sensitivity on RTC Wake-Up internal signal */	
	EXTI->RTSR |= EXTI_Line20;
	
	/* Disable clocks for SysCfg */
  RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, DISABLE);
	
}

/************************************** EOF *********************************/
